# TODO 运算符
# a = 5
# b = 3

# print(a + b)    #打印a加b的值

# print(a - b)      #打印a减b的值

# print(a * b)       #打印a乘b的值

# print(a / b)       #打印a除b的值

# print(a % b)     #打印a除b的余数

# print(a ** b)     #打印a的b次方的值

# print(a // b)     #打印a除b的整除部分


# TODO 比较运算符
# 比较运算符的运算结果为bool类型(True或者Flase)
# a = 5
# b = 3
# == 比较两个对象是否相等
# print(a == b)

# != 比较两个对象是否相等
# print(a != b)

# > <
# print(a > b)
# print(a < b)

# >= <=
# print(a >= b)    #True
# print(a <= b)    #False


# TODO 赋值运算符
# a = 5
# b = 3
# = 赋值运算符
# name = 'HU'
# print(name)

# +=
# a += b    # a += b  >>  a = a + b
# print(a)

# -=
# a -= b    # a -= b  >>  a = a - b
# print(a)

# *=
# a *= b    # a *= b  >>  a = a * b
# print(a)

# /=
# a /= b    # a /= b  >>  a = a / b
# print(a)

# %=
# a %= b    # a %= b  >>  a = a % b
# print(a)

# **=
# a **= b    # a **= b  >>  a = a ** b
# print(a)

# //=
# a //= b    # a //= b  >>  a = a // b
# print(a)


# TODO 身份运算符
# a = 'hello'
# b = 'hello'
# print(id(a), id(b))
# print(a == b)    #值比较
# print(a is b)    #身份比较(内存地址比较)

# 字符串/数字/布尔  基本数据类型
# 列表  容器数据类型
list1 = [1, 2, 3]
list2 = [1, 2, 3]
print(id(list1), id(list2))
print(list1 == list2)    #值比较
print(list1 is list2)    #身份比较(内存地址比较)

